let baseURL = "http://101.35.25.8:5757/heyushuo/"
export default function request({
  url,
  method="get",
  header,
  data,
  dataType,
  timeout=120000
}) {
  return new Promise((resolve, reject)=>{
    wx.request({
      url: baseURL + url,
      method,
      header,
      data,
      timeout,
      success: (res)=> {
        resolve(res)
      },
      fail: (err)=> {
        reject(err)
      }
    })
  })
}